package com.lee.mysql.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@ApiModel(description="数据库信息")
public class TableDbInfo implements Serializable {
   private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(name="主键",value="主键")
    private String id;
    
    /** 同步配置ID */
    @ApiModelProperty(name="同步配置ID",value="同步配置ID")
    private String configId;
    
    /** 数据库类型 1源数据库 2目标数据库 */
    @ApiModelProperty(name="数据库类型 1源数据库 2目标数据库",value="数据库类型 1源数据库 2目标数据库")
    private String dbType;
    
    /** 数据库序号 */
    @ApiModelProperty(name="数据库序号",value="数据库序号")
    private String dbSort;
    
    /** 主机IP端口 */
    @ApiModelProperty(name="主机IP端口",value="主机IP端口")
    private String dbHost;
    
    /** 主机用户名 */
    @ApiModelProperty(name="主机用户名",value="主机用户名")
    private String dbUsername;
    
    /** 主机密码 */
    @ApiModelProperty(name="主机密码",value="主机密码")
    private String dbPassword;
    
    /** 生成秘钥的公钥 */
    @ApiModelProperty(name="生成秘钥的公钥",value="生成秘钥的公钥")
    private String dbSalt;
    
    /** 数据库名 */
    @ApiModelProperty(name="数据库名",value="数据库名")
    private String dataBase;
    
    /** 数据库类型 5-Mysql5  8-Mysql8 */
    @ApiModelProperty(name="数据库类型 5-Mysql5  8-Mysql8",value="数据库类型 5-Mysql5  8-Mysql8")
    private String mysqlType;
    
    /** 字符集 utf8 */
    @ApiModelProperty(name="字符集 utf8",value="字符集 utf8")
    private String charSet;
    


    /**
     * 主键
     * @return the value of table_db_info.id
     */
    public String getId() {
        return id;
    }
    
     /**
     * 主键
     * @param id the value for table_db_info.id
     */
    public void setId(String id) {
        this.id = id;
    }
    
    /**
     * 同步配置ID
     * @return the value of table_db_info.config_id
     */
    public String getConfigId() {
        return configId;
    }
    
     /**
     * 同步配置ID
     * @param configId the value for table_db_info.config_id
     */
    public void setConfigId(String configId) {
        this.configId = configId;
    }
    
    /**
     * 数据库类型 1源数据库 2目标数据库
     * @return the value of table_db_info.db_type
     */
    public String getDbType() {
        return dbType;
    }
    
     /**
     * 数据库类型 1源数据库 2目标数据库
     * @param dbType the value for table_db_info.db_type
     */
    public void setDbType(String dbType) {
        this.dbType = dbType;
    }
    
    /**
     * 数据库序号
     * @return the value of table_db_info.db_sort
     */
    public String getDbSort() {
        return dbSort;
    }
    
     /**
     * 数据库序号
     * @param dbSort the value for table_db_info.db_sort
     */
    public void setDbSort(String dbSort) {
        this.dbSort = dbSort;
    }
    
    /**
     * 主机IP端口
     * @return the value of table_db_info.db_host
     */
    public String getDbHost() {
        return dbHost;
    }
    
     /**
     * 主机IP端口
     * @param dbHost the value for table_db_info.db_host
     */
    public void setDbHost(String dbHost) {
        this.dbHost = dbHost;
    }
    
    /**
     * 主机用户名
     * @return the value of table_db_info.db_username
     */
    public String getDbUsername() {
        return dbUsername;
    }
    
     /**
     * 主机用户名
     * @param dbUsername the value for table_db_info.db_username
     */
    public void setDbUsername(String dbUsername) {
        this.dbUsername = dbUsername;
    }
    
    /**
     * 主机密码
     * @return the value of table_db_info.db_password
     */
    public String getDbPassword() {
        return dbPassword;
    }
    
     /**
     * 主机密码
     * @param dbPassword the value for table_db_info.db_password
     */
    public void setDbPassword(String dbPassword) {
        this.dbPassword = dbPassword;
    }
    
    /**
     * 生成秘钥的公钥
     * @return the value of table_db_info.db_salt
     */
    public String getDbSalt() {
        return dbSalt;
    }
    
     /**
     * 生成秘钥的公钥
     * @param dbSalt the value for table_db_info.db_salt
     */
    public void setDbSalt(String dbSalt) {
        this.dbSalt = dbSalt;
    }
    
    /**
     * 数据库名
     * @return the value of table_db_info.data_base
     */
    public String getDataBase() {
        return dataBase;
    }
    
     /**
     * 数据库名
     * @param dataBase the value for table_db_info.data_base
     */
    public void setDataBase(String dataBase) {
        this.dataBase = dataBase;
    }
    
    /**
     * 数据库类型 5-Mysql5  8-Mysql8
     * @return the value of table_db_info.mysql_type
     */
    public String getMysqlType() {
        return mysqlType;
    }
    
     /**
     * 数据库类型 5-Mysql5  8-Mysql8
     * @param mysqlType the value for table_db_info.mysql_type
     */
    public void setMysqlType(String mysqlType) {
        this.mysqlType = mysqlType;
    }
    
    /**
     * 字符集 utf8
     * @return the value of table_db_info.char_set
     */
    public String getCharSet() {
        return charSet;
    }
    
     /**
     * 字符集 utf8
     * @param charSet the value for table_db_info.char_set
     */
    public void setCharSet(String charSet) {
        this.charSet = charSet;
    }
    


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
           sb.append(", id=").append(id);
           sb.append(", configId=").append(configId);
           sb.append(", dbType=").append(dbType);
           sb.append(", dbSort=").append(dbSort);
           sb.append(", dbHost=").append(dbHost);
           sb.append(", dbUsername=").append(dbUsername);
           sb.append(", dbPassword=").append(dbPassword);
           sb.append(", dbSalt=").append(dbSalt);
           sb.append(", dataBase=").append(dataBase);
           sb.append(", mysqlType=").append(mysqlType);
           sb.append(", charSet=").append(charSet);
        sb.append("]");
        return sb.toString();
    }

}